#!/usr/bin/env python

# -------
# Imports:
# -------
import os
from django.utils import simplejson
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext.webapp import template
from settings import *

# ------------------------------------------
class CellComplexView(webapp.RequestHandler):
# ------------------------------------------
	# -----------
    def get(self):
	# -----------
		data = [[(0,0), (5,0), (10,0), (5,5)], [(0,1), (1,2), (0,3), (1,3)], [(0,2,3)]]

		path = os.path.join(TEMPLATE_DIR, 'cell_complex.html')
		self.response.out.write(template.render(path, {'data': simplejson.dumps(data)}))
